package main
import "fmt"
func main() {
	var userInfo = map[string]string{
		"username": "zhangsan",
		"password": "123456",
		"age":      "18",
		"address":  "beijing",
		"email":    "zhangsan@qq.com",
		"phone":    "1234567890",
	}

	// for key, value := range userInfo {
	// 	fmt.Println(key + ": " + value)
	// }

	v, ok := userInfo["username"]
	fmt.Printf("userInfo.username是否存在？%v，值是：%v\n", ok, v)
	v2, ok2 := userInfo["company"]
	fmt.Printf("userInfo.company是否存在？%v，值是：%v\n", ok2, v2)
}